package com.ruoyi.business.processIou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.bizsys.domain.LoanIou;
import com.ruoyi.bizsys.domain.LoanOffset;
import com.ruoyi.bizsys.vo.LoanIouExtVo;
import com.ruoyi.business.processIou.domain.LoanOffsetChangeRecord;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author wqg
 * @description
 * @date 2022/3/25
 */
public interface ILoanOffsetChangeRecordService extends IService<LoanOffsetChangeRecord> {

    /**
     *  @param loanOffset 原数据
     * @param lateFeePlus 剩余罚息
     * @param lateFeePlusAll 总罚息
     * @param loanIou 当前的数据
     * @param iou
     */
    void updateAndCreateRecord(LoanOffset loanOffset, BigDecimal lateFeePlus, BigDecimal lateFeePlusAll, LoanIouExtVo loanIou, LoanIou iou);

    void updateRecordAndinsert(LoanOffsetChangeRecord loanOffsetChangeRecord,LoanOffset loanOffset);

    void DoInsertLoanOffsetAndRepaymentOrder(LoanIou loanIou, String paymentReference, Date completedOn, BigDecimal amountPaid);
}
